package hotciv.unitstrategies;

import hotciv.framework.GameConstants;
import hotciv.framework.GameContext;
import hotciv.framework.Position;
import hotciv.framework.UnitStrategy;

public class SettlerBuildUnitStrategy implements UnitStrategy
{
	@Override
	public void performUnitActionAt(Position p, GameContext g) 
	{
		if(g.getUnitAt(p).getTypeString() == GameConstants.SETTLER)
		{
			g.addCity(p);
			g.removeUnitAt(p);
		}
		
	}

}
